// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import '@/assets/scss/publice.scss' //引入全局公共样式
import './assets/scss/iconfonts/iconfont.scss' //iconfont引入字体样式
import GlobalComponent from './plugins/components' //引入全局组件
import ElementUI from 'element-ui'; //引入ElementUI组件
import 'element-ui/lib/theme-chalk/index.css'; //引入ElementUI样式
import 'swiper/css/swiper.min.css' //引入swiper样式
import VueAwesomeSwiper from 'vue-awesome-swiper' //引入swiper
import VueAMap from 'vue-amap'; // 引入vue-amap地图插件
import api from './api/api-config' //导入二次封装的axios
Vue.config.productionTip = false
Vue.prototype.$http = api //注册api
Vue.use(VueAMap); //使用高德地图
VueAMap.initAMapApiLoader({
    key: 'your amap key',
    plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
    // 默认高德 sdk 版本为 1.4.4
    v: '1.4.4'
});
// Vue.use(axiosPlgin) //使用axios,可以使用this.$http调用
Vue.use(VueAwesomeSwiper) //使用swiper
Vue.use(ElementUI) //使用ElementUI组件
Vue.use(GlobalComponent) //注册全局组件

new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})